package com.springfairytale.qqserver.action;

import java.net.Socket;

import com.springfairytale.qq.common.Protocol;

/*
 * This is BaseAction.All the actions need to extend it and  override the method execute.
 */
public abstract class BaseAction {
	protected Protocol p;
	
	protected Socket s;

	public BaseAction() {}

	public BaseAction(Protocol p) {
		this.p = p;
	}
	
	public void setReceiver(Protocol p,Socket s) {
		this.p = p;
		this.s = s;
	}
	
	public abstract void execute();
}
